package com.ruoyi.back.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资料信息对象 information
 * 
 * @author luguanqing
 * @date 2021-04-06
 */
@ApiModel("资料信息实体")
public class Information extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty(value = "主键id")
    private String id;

    /** 资料名称 */
    @ApiModelProperty(value = "资料名称")
    @Excel(name = "资料名称")
    private String title;

    /** 资料介绍 */
    @ApiModelProperty(value = "资料介绍")
    @Excel(name = "资料介绍")
    private String introduce;

    /** 资料上传路径 */
    @ApiModelProperty(value = "资料上传路径")
    @Excel(name = "资料上传路径")
    private String url;

    /** 资料大小 */
    @ApiModelProperty(value = "资料大小")
    @Excel(name = "资料大小")
    private String size;

    /** 资料图标 */
    @ApiModelProperty(value = "资料图标")
    @Excel(name = "资料图标")
    private String icon;

    /** 上传资料时间 */
    @ApiModelProperty(value = "上传资料时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传资料时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uptime;

    /** 浏览次数 */
    @ApiModelProperty(value = "浏览次数")
    @Excel(name = "浏览次数")
    private String visit;

    /** 下载次数 */
    @ApiModelProperty(value = "下载次数")
    @Excel(name = "下载次数")
    private String downtime;

    /** 资料类型 */
    @ApiModelProperty(value = "资料类型")
    @Excel(name = "资料类型")
    private String type;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setUptime(Date uptime) 
    {
        this.uptime = uptime;
    }

    public Date getUptime() 
    {
        return uptime;
    }
    public void setVisit(String visit) 
    {
        this.visit = visit;
    }

    public String getVisit() 
    {
        return visit;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public String getDowntime() {
        return downtime;
    }

    public void setDowntime(String downtime) {
        this.downtime = downtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("introduce", getIntroduce())
            .append("url", getUrl())
            .append("size", getSize())
            .append("icon", getIcon())
            .append("uptime", getUptime())
            .append("visit", getVisit())
            .append("type", getType())
            .append("downtime", getDowntime())
            .toString();
    }
}
